import request from '@/utils/request'
// 获取测点分组下拉菜单
export const getxialafenzuapi = params => request.get('/core/dictionary/combo-item/list', { params })
// 获取表格数据
export const getcedianlistapi = params => request.get('/core/iot/config/item-type/list', { params })
// 获取数据类型下拉菜单
export const getleixingxialaapi = () => request.get('/core/dictionary/combo-item/list?dictType=MeasureDataType')
// 获取数据模型下拉菜单
export const getmoxingxialaapi = () => request.get('/core/dictionary/combo-item/list?dictType=MeasurementModel')
// 获取数据相别下拉菜单
export const geixiangxialaapi = () => request.get('/core/dictionary/combo-item/list?dictType=MeasurementPhase')
// 获取转换规则下拉菜单
export const getguizelistapi = () => request.get('/core/dictionary/combo-item/list?dictType=MeasureConvertType')
// 获取非遥信状态下数据模型下拉菜单
export const getycmoxingapi = () => request.get('/core/dictionary/child-combo-item/list?dictType=MeasurementModel&parentDictValue=YC')
// 新增测点类型
export const postcedianlistapi = data => request.post('/core/iot/config/item-type', { ...data, isParams: true })
// 删除测点类型
export const delceshilistapi = data => request.post('/core/iot/config/item-type/delete', { ...data, isParams: true })
// 修改测点类型
export const putceshilistapi = data => request.post('/core/iot/config/item-type/put', { ...data, isParams: true })
// 删除枚举信息
export const delmeijuapi = data => request.post('/core/iot/config/item-type/enum-item/delete', { ...data, isParams: true })
// 添加枚举信息
export const postmeijuapi = data => request.post('/core/iot/config/item-type/enum-item/put', { ...data, isParams: true })
// 修改测点类型图标
export const puticonlogoapi=data=>request.post('/core/iot/config/item-type/image/put', { ...data, isParams: true })
